﻿using System;

namespace AMS.DataAccess.Trademark.BO
{
    [DBTable("TTD_RFTask")]
    public class RFTaskInfo
    {
        /// <summary>
        /// 表示启动任务
        /// </summary>
        public const string RFTaskType_StartTask = "S";
        /// <summary>
        /// 表示完成任务
        /// </summary>
        public const string RFTaskType_FinishTask = "F";

        #region Database Column Fields
        [DBPrimaryKeyColumn("AID", true)]
        public int AID { get; set; }

        [DBColumn("RFIndex")]
        public string RFIndex { get; set; }

        [DBColumn("TaskIndex")]
        public string TaskIndex { get; set; }

        /// <summary>
        /// 表示动作是启动或完成。
        /// 使用RFTaskInfo.RFTaskType_StartTask和RFTaskInfo.RFTaskType_FinishTask对其赋值。
        /// </summary>
        [DBColumn("Type")]
        public string Type { get; set; }

        [DBColumn("Role")]
        public string Role { get; set; }

        [DBColumn("iAddDay")]
        public int iAddDay { get; set; }

        [DBColumn("iAddMonth")]
        public int iAddMonth { get; set; }

        [DBColumn("oAddDay")]
        public int oAddDay { get; set; }

        [DBColumn("oAddMonth")]
        public int oAddMonth { get; set; }

        [DBColumn("GenRFIndex")]
        public string GenRFIndex { get; set; }

        [DBColumn("CustomerID")]
        public int CustomerID { get; set; }

        [DBDisplayColumn("CaseType")]
        public int CaseType { get; set; }
        #endregion

        [DBColumn("TaskName", true, true)]
        public string TaskName { get; set; }

        [DBColumn("TaskType", true, true)]
        public string TaskType { get; set; }
    }
}
